
#include "CCamera.h"

CCamera::CCamera()
{
	m_X = 0;
	m_Y = 0;
	m_Width = 0;
	m_Height = 0;
	m_offsetX = 0;
	m_offsetY = 0;
	m_statue = CAMERA_OFF;
}

CCamera::~CCamera()
{

}

void CCamera::Move(float x, float y)
{
	m_X += x;
	m_Y += y;
}

void CCamera::Setposition(float x, float y)
{
	m_X = x;
	m_Y = y;
}

void CCamera::SetSize(int width, int height)
{
	m_Width = width;
	m_Height = height;
}

void CCamera::SetOffset(int x, int y)
{
	m_offsetX = x;
	m_offsetY = y;
}

int CCamera::GetWidth()
{
	return m_Width;
}

int CCamera::GetHeight()
{
	return m_Height;
}

int CCamera::GetOffsetX()
{
	return m_offsetX;
}

int CCamera::GetOffsetY()
{
	return m_offsetY;
}

float CCamera::GetX()
{
	return m_X;
}

float CCamera::GetY()
{
	return m_Y; 
}

int CCamera::Statue()
{
	return m_statue;
}

void CCamera::On()
{
	m_statue = CAMERA_ON;
}

void CCamera::Off()
{
	m_statue = CAMERA_OFF;
}